<?php

namespace app\payment;

use Yansongda\Pay\Pay;

abstract class AbstractPay
{
    protected $data;

    public $supportPayWay = [];

    public function __construct($data = [])
    {
        $this->data = $data;
    }

    public function setData($data)
    {
        $this->data = $data;
        return $this;
    }

    public function pay()
    {
        throw new \Exception('请先实现支付方法');
    }

    public function payBack()
    {
        throw new \Exception('请先实现退款方法');
    }

    public function getSupportPayWayTypes()
    {
        return $this->supportPayWay;
    }
}